搜索资源列表
Plant
- 模拟植树活动,编写一个java应用程序,在主线程中创建3个线程:"挖树坑"、"栽树苗"、"浇水" * 实现他们之间的协同合作 * 要求"浇水"线程占有CPU资源后立即等待"栽树苗"线程栽完树后才能开始浇水, * 而"栽树苗"线程占有CPU资源后则一直等待"挖树坑"线程挖完树坑后才能开始栽树苗 * 关于线程交互过程的信息能够在屏幕上进行提示 * 使用join()方法实现线程交互 */ -Simulated tree-planting activities, writ
Process-scheduling-to-achieve
- 本程序运用java语言模拟线程间的调度,在原随机调度的基础上实现轮转调度,优先级调度,处理各线程间的调度关系,并试着用信号量实现线程的锁定和释放。-This program threads using java language simulation scheduling, dispatching the former on the basis of random rotation scheduling, priority scheduling, process scheduling of th
thread
- 实现Java中创建线程以及线程的控制线程的同步与锁-Java threads created to achieve control of threads and thread synchronization and locking
DeadLock
- 在java中实现2个线程之间的死锁,即程序始终不终止,但也仍在运行-Implemented in java deadlock between two threads, that process has not terminated, but it is still running
Main_Class
- this application show how you can use threads in java
1
- This an important programming paradigm where you can run multiple “threads” of execution in parallel. Parallel programming is useful in reducing the running time, or deal with asynchronous inputs, or sometimes just to model the problem in a better ma
An-Introduction-to-Parallel-and-Vector-Scientific
- In this text, students of applied mathematics, science and engineering are introduced to fundamental ways of thinking about the broad context of parallelism. The authors begin by giving the reader a deeper understanding of the issues through a genera
04_Thread
- java中线程的学习,帮助我们掌握JAVA中得多线程-java threads in the study, much more to help us grasp the threads in JAVA
thread
- Java 中购物与三线程问题,卡耐基梅隆的作业题。-Shopping with three threads in Java problems, Carnegie Mellon' s job title.
T5a2
- 采用Java多线程技术编写程序,其中包括两个线程:A和B,其中A线程准备休眠一小时,B线程每隔一秒输入3句“起床”后,吵醒休眠的线程A。-Multithreading in Java programming, including two threads: A and B, where A thread is ready to sleep one hour, B type 3 thread every second " up" , the awakened dormant thre
Javaproducer-Consumer
- java实现生产者消费者的过程,两个线程对一个互斥锁的资源访问,从而实现同步与互斥-java implementation of the process of producers and consumers, two threads of a mutex resource access, in order to achieve synchronization and mutual exclusion
test
- Java线程synchronized实例 -Synchronized instance of Java threads
ReaderWriter
- Java多线程读者写者程序。程序先从txt文本中读取读者写者信息,1 R 3 5为例,1为线程序号,R表示读者,3表示申请操作的时间(秒为单位),5表示操作持续的时间。运行后先选择读者/写者优先,之后按照文本中的描述建立线程,采用信号量机制处理互斥访问。-Readers who write multi-threaded Java programs. Txt program text reads the reader to start writing Information, 1 R 3 5, f
JavaThreads
- 一个简单的创建Java线程的例子,创建了Class类,供初学Java参考。-A simple example of creating Java threads,creating a Class class for Java beginners reference.
1
- java创建两个线程,分别输出6次信息,用extend继承方法-Java creates two threads
Prime
- JAVA多线程找质数。 输入为你想要创建的线程数和质数上限。 例: java PrimeSieve 10 3会利用三个线程输出10以下所有的质数-JAVA multi-threading to find prime numbers. Enter the number of threads you want to create the maximum number and quality. Example: java PrimeSieve 10 3 will make use of
ConcurrentServer
- Concurrent Server using threads in JAVA
Concurrent-Server
- Java program using threads for concurrent server
client
- Java program using threads for client to the concurrent server
JavaThreads
- 对于Java线程的讲解入门,对于菜鸟级的程序员有很好的引导。-Introduction to Java threads for explanations for the rookie-level programmers have a good guide.